//
//  UIImage+;
//  ToastDemo
//
//  Created by seed on 2016/11/25.
//  Copyright © 2016年 WTFSSD. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Extention)
-(UIImage*)scaleToSize:(CGSize)size;
+(instancetype)imageWithColor:(UIColor *)color size:(CGSize)size;
+ (instancetype)imageWithMargin:(CGFloat)margin marginColor:(UIColor *)color image:(UIImage *)image;
+(UIImage*)screenShot;
+(UIImage*)screenShotWithView:(UIView*)view;


-(UIImage*)imageWithMargin:(CGFloat)margin marginColor:(UIColor *)color size:(CGSize)size;
@end
